<template>
  <header class="volvo-header">
    <div class="volvo-header__left">
      <h1 class="volvo-header__title">{{ title }}</h1>
      <p class="volvo-header__subtitle">{{ subtitle }}</p>
    </div>
    <div class="volvo-header__right">
      <volvo-button>{{ buttonText }}</volvo-button>
    </div>
  </header>
</template>

<script setup>
import VolvoButton from '../button/index.vue';

defineProps({
  title: {
    type: String,
    default: '主标题文案'
  },
  subtitle: {
    type: String,
    default: '副标题文案'
  },
  buttonText: {
    type: String,
    default: '按钮文案'
  }
});
</script>

<style lang="scss" scoped>
.volvo-header {
  width: 100%;
  height: 64px;
  padding: 8px 24px;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;

  &__left,&__right {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  &__title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #141414;
    margin: 0;
  }

  &__subtitle {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    color: #707070;
    margin: 0;
  }
}
</style>
